#ifndef PUBLICFUNHELPER_H
#define PUBLICFUNHELPER_H

#include <QObject>
#include <QJsonObject>
#include <QJsonArray>

class PublicFunHelper
{
public:
    explicit PublicFunHelper();
    static QString getRandomString(const int& iLen);

    static QJsonObject convertToJson(const QString& strMsg);
    static QString convertToString(const QJsonObject& json);

    static void getCameraDevices(QStringList& name, QStringList& id);

};

#endif // PUBLICFUNHELPER_H
